import request from '@/utils/request'

// 查询我的消息列表
export function listMessageReceive(query) {
  return request({
    url: '/member/messageReceive/list',
    method: 'get',
    params: query
  })
}

// 查询我的消息详细
export function getMessageReceive(messageMyId) {
  return request({
    url: '/member/messageReceive/' + messageMyId,
    method: 'get'
  })
}

// 新增我的消息
export function addMessageReceive(data) {
  return request({
    url: '/member/messageReceive',
    method: 'post',
    data: data
  })
}

// 修改我的消息
export function updateMessageReceive(data) {
  return request({
    url: '/member/messageReceive',
    method: 'put',
    data: data
  })
}

// 删除我的消息
export function delMessageReceive(messageMyId) {
  return request({
    url: '/member/messageReceive/' + messageMyId,
    method: 'delete'
  })
}
